import java.util.Scanner;

public class UserTest {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		User admin1 = new User();
		admin1.account = "Gothlin";
		admin1.passWord = "wx1996621";
		System.out.println("请输入用户名：");
		String a = input.next();
		System.out.println("请输入密码：");
		String pwd = input.next();
		if (a.equals(admin1.account) && pwd.equals(admin1.passWord)) {
			System.out.println("请输入新密码：");
			admin1.passWord = input.next();
			System.out.println("修改密码成功，您的新密码为：" + admin1.passWord);
		} else {
			System.out.println("用户名与密码不匹配，您没有权限更新账户信息");
		}
	}
}
